﻿@using OnlinePharmacyV001.ViewModel;
@model IEnumerable<OnlinePharmacyV001.Models.Category>
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
<p>
    <a href="/Category/Create">
        <img src="../../Content/AdminLayout/img/icons/categories.png" /></a>
</p>
<table width="100%">
    <tr>
        <th>
            Category Id
        </th>
        <th>
            Category Name
        </th>
        <th>
            Edit
        </th>
        <th>
            Delete
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @item.CateId
            </td>
            <td>
                <a href="/Category/Details/@(item.CateId)">
                    @item.CateName
                </a>
            </td>
            <td>
                <a href="/Category/Edit/@(item.CateId)">
                    <img src="../../Content/AdminLayout/img/icons/icon-24-edit.png" /></a>
            </td>
            <td>
                <a href="/Category/Delete/@(item.CateId)">
                    <img src="../../Content/AdminLayout/img/icons/icon-24-delete.png" /></a>
            </td>
        </tr>
    }
</table>
